/*
gestionImages.c
-----

créer par Issa

Rôle : gestion des images en EFL
*/


#include "allInclude.h"


Evas_Object  *murMove( Evas_Object *o,Evas *evas,int move1,int move2)
{
    int iw, ih;
    o = evas_object_image_add (evas);
    evas_object_image_file_set (o, "../imgs/mur.jpg", NULL);
    evas_object_image_size_get(o, &iw, &ih);
    evas_object_image_size_set(o, iw, ih);
    evas_object_image_fill_set(o, 0, 0, iw, ih);
    evas_object_resize (o, iw, ih);
    evas_object_move (o, move1, move2);
    return o;
}

Evas_Object  *caisseMove( Evas_Object *o,Evas *evas,int move1,int move2)
{
    int iw, ih;
    o = evas_object_image_add (evas);
    evas_object_image_file_set (o, "../imgs/caisse.jpg", NULL);
    evas_object_image_size_get(o, &iw, &ih);
    evas_object_image_size_set(o, iw, ih);
    evas_object_image_fill_set(o, 0, 0, iw, ih);
    evas_object_resize (o, iw, ih);
    evas_object_move (o, move1, move2);
    return o;
}

Evas_Object  *MarioBas( Evas_Object *o,Evas *evas,int move1,int move2)
{
    int iw, ih;
    o = evas_object_image_add (evas);
    evas_object_image_file_set (o, "../imgs/mario_bas.gif", NULL);
    evas_object_image_size_get(o, &iw, &ih);
    evas_object_image_size_set(o, iw, ih);
    evas_object_image_fill_set(o, 0, 0, iw, ih);
    evas_object_resize (o, iw, ih);
    evas_object_move (o, move1, move2);
    return o;
}
Evas_Object  *objectifMove( Evas_Object *o,Evas *evas,int move1,int move2)
{
    int iw, ih;
    o = evas_object_image_add (evas);
    evas_object_image_file_set (o, "../imgs/objectif.png", NULL);
    evas_object_image_size_get(o, &iw, &ih);
    evas_object_image_size_set(o, iw, ih);
    evas_object_image_fill_set(o, 0, 0, iw, ih);
    evas_object_resize (o, iw, ih);
    evas_object_move (o, move1, move2);
    return o;
}

Evas_Object  *videMove( Evas_Object *o,Evas *evas,int move1,int move2)
{
    int iw, ih;
    o = evas_object_image_add (evas);
    evas_object_image_file_set (o, "../imgs/vide.jpg", NULL);
    evas_object_image_size_get(o, &iw, &ih);
    evas_object_image_size_set(o, iw, ih);
    evas_object_image_fill_set(o, 0, 0, iw, ih);
    evas_object_resize (o, iw, ih);
    evas_object_move (o, move1, move2);
    return o;
}

Evas_Object  *caisseMoveOK( Evas_Object *o,Evas *evas,int move1,int move2)
{
    int iw, ih;
    o = evas_object_image_add (evas);
    evas_object_image_file_set (o, "../imgs/caisse_ok.jpg", NULL);
    evas_object_image_size_get(o, &iw, &ih);
    evas_object_image_size_set(o, iw, ih);
    evas_object_image_fill_set(o, 0, 0, iw, ih);
    evas_object_resize (o, iw, ih);
    evas_object_move (o, move1, move2);
    return o;
}


Evas_Object  *victory( Evas_Object *o,Evas *evas)
{
    int iw, ih;
    o = evas_object_image_add (evas);
    evas_object_image_file_set (o, "../imgs/victoire.png", NULL);
    evas_object_image_size_get(o, &iw, &ih);
    evas_object_image_size_set(o, iw, ih);
    evas_object_image_fill_set(o, 0, 0, iw, ih);
    evas_object_resize (o, iw, ih);
    evas_object_move (o, 0, 0);
    return o;
}
